@import '../../color.less';

.item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid @borderColor;
    h3 {
        padding: 8px 16px;
        padding-bottom: 0px;
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        color: #000;
    }
    .wrap.active {
        background-color: @activeBgColor
    }
    .wrap {
        display: flex;
        align-items: center;
        padding: 10px 16px;
        padding-left: 10px;
        padding-right: 0px;
        cursor: pointer;
        position: relative;
        .line {
            position: absolute;
            height: 1px;
            width: 82%;
            background-color: rgba(0, 0, 0, 0.1);
            bottom: 0;
            right: 0;                
        }
        .left {
            color: @mainColor;
            border: 1PX solid @mainColor;
            width: 40PX;
            height: 20PX;
            line-height: 18PX;
            font-size: 12px;
            border-radius: 100%;
            text-align: center;
            flex-shrink: 0;
            &.circle {
                height: 30PX;
                width: 30PX;
                line-height: 30PX;
                font-size: 14px;
                border-radius: 100%;
            }
            &.rect {
                .left.circle;
                border-radius: 8px;
            }
            &.green {
                color: @finshColor;
                border: 1PX solid @finshColor;
            }
            &.red {
                color: @warnColor;
                border: 1PX solid @warnColor;
            }
            &.orange {
                color: #f0af41;
                border: 1PX solid #f0af41;
            }
            &.blue{
                color: @mainColor;
                border: 1PX solid @mainColor;
            }
            &.circlegreen {
                .left.circle;
                .left.green
            }
            &.left.rectgreen {
                .left.rect;
                .left.green
            }
        }
        .right {
            flex: 1;
            padding: 0 8px;
            position: relative;
            overflow: hidden;
            div {
                font-size: 12px;
            }
            .right1{
                color: #616161;
                position: relative;
                font-size: 13px;
                font-weight: 500;
                padding-bottom: 2px;
                word-break: break-all;
                div{
                    float: right;
                    color: #868686;
                }
            }
            .right2{
                color: #a7a7a7;
                font-size: 12px;
                padding: 2px 0;
                padding-right: 24px;
                position: relative;
                overflow: hidden;
                text-overflow:ellipsis;
                white-space: nowrap;
                .mention {
                    color: @warnColor;
                    margin-right: 4px;
                }
                .cache {
                    padding: 0;
                    margin: 0;
                    span {
                        color: @warnColor;
                        margin-right: 4px;
                    }
                }
                div{
                    position: absolute;
                    top: 0;
                    right: 0;
                    background-color: @warnColor;
                    color: #fff;
                    width: 20px;
                    height: 20px;
                    text-align: center;
                    line-height: 20px;
                    border-radius: 10px;
                }
                .msgfinish {
                    position: absolute;
                    top: 0;
                    right: 0;
                    color: @warnColor;
                    font-size: 12px;
                    line-height: 12px;
                }
            }
        }
    }
}